var formPanel4InjuryAdd;
var injuryWin;
function onAddInjury(uri,funStr,funStr1) {
    titleStr = '添加记录'
    if (formPanel4InjuryAdd != null) {
        formPanel4InjuryAdd.destroy(true);
        formPanel4InjuryAdd = null;
    }
    if (!formPanel4InjuryAdd) {
        formPanel4InjuryAdd = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            // html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
            // width="100%" height="100%" frameborder="0"/>'
            html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (injuryWin != null) {
        injuryWin.destroy(true);
        injuryWin = null;
    }
    if (!injuryWin) {
        injuryWin = new Ext.Window({
            id : 'injuryWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : formPanel4InjuryAdd,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
//                  save_fun('1');
                },
                text : '保存',
                tooltip : '保存信息不提交审核'
            }, {
                handler : function() {
                    eval("parent."+funStr1);
//                  save_fun('2');
                },
                text : '提交',
                tooltip : '保存信息并提交审核'
            }, {
                handler : function() {
                    injuryWin.hide();
                },
                text : '取消'
            }]
        });
    }
    injuryWin.show();
}

var mod_injuryformPanel;
var modInjuryWin;
function onModInjury(record,id,uri,funStr,funStr1) {
    var titleStr
    titleStr = '修改记录'
    if (mod_injuryformPanel != null) {
        mod_injuryformPanel.destroy(true);
        mod_injuryformPanel = null;
    }
    if (!mod_injuryformPanel) {
        mod_injuryformPanel = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (modInjuryWin != null) {
        modInjuryWin.destroy(true);
        modInjuryWin = null;
    }
    if (!modInjuryWin) {
        modInjuryWin = new Ext.Window({
            id : 'modInjuryWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : mod_injuryformPanel,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '保存',
                tooltip : '保存信息不提交审核'
            }, {
                handler : function() {
                    eval("parent."+funStr1);
                },
                text : '提交',
                tooltip : '保存信息并提交审核'
            }, {
                handler : function() {
                    modInjuryWin.hide();
                },
                text : '取消'
            }]
        });
    }
    modInjuryWin.show();
}

var submitInjuryFormPanel;
var submitInjuryWin;
function onSubmitInjury(record,id,uri,funStr) {
    var  titleStr
    titleStr = '提交记录'

    if (submitInjuryFormPanel != null) {
        submitInjuryFormPanel.destroy(true);
        submitInjuryFormPanel = null;
    }
    if (!submitInjuryFormPanel) {
        submitInjuryFormPanel = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (submitInjuryWin != null) {
        submitInjuryWin.destroy(true);
        submitInjuryWin = null;
    }
    if (!submitInjuryWin) {
        submitInjuryWin = new Ext.Window({
            id : 'submitInjuryWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : submitInjuryFormPanel,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '提交',
                tooltip : '保存信息并提交审核'
            }, {
                handler : function() {
                    submitInjuryWin.hide();
                },
                text : '取消'
            }]
        });
    }
    submitInjuryWin.show();
}

var seeInjuryformPanel;
var seeInjuryWin;
function onSeeInjury(record,id,uri,funStr,funStr1) {
    var titleStr
    titleStr = '查看记录'
    if (seeInjuryformPanel != null) {
        seeInjuryformPanel.destroy(true);
        seeInjuryformPanel = null;
    }
    if (!seeInjuryformPanel) {
        seeInjuryformPanel = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,   
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (seeInjuryWin != null) {
        seeInjuryWin.destroy(true);
        seeInjuryWin = null;
    }
    if (!seeInjuryWin) {
        seeInjuryWin = new Ext.Window({
            id : 'seeInjuryWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : seeInjuryformPanel,
            buttons : [{
                handler : function() {
                    seeInjuryWin.hide();
                },
                text : '取消'
            }]
        });
    }
    seeInjuryWin.show();
}

var detailInjuryFormPanel;
var detailInjuryWin;
function onDetailInjury(record,id,uri,funStr,funStr1) {
    var  titleStr
    titleStr = '查看信息'

    if (detailInjuryFormPanel != null) {
        detailInjuryFormPanel.destroy(true);
        detailInjuryFormPanel = null;
    }
    if (!detailInjuryFormPanel) {
        detailInjuryFormPanel = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (detailInjuryWin != null) {
        detailInjuryWin.destroy(true);
        detailInjuryWin = null;
    }
    if (!detailInjuryWin) {
        detailInjuryWin = new Ext.Window({
            id : 'detailInjuryWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : detailInjuryFormPanel,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '审核通过'
            }, {
                handler : function() {
                    eval("parent."+funStr1);
                },
                text : '退回修订'
            }, {
                handler : function() {
                    detailInjuryWin.hide();
                },
                text : '关闭'
            }]
        });
    }
    detailInjuryWin.show();
}

var injuryVisitFormPanel;
var injuryVisitWin;
function onInjuryVisit(record,id,uri,funStr,funStr1) {
    var titleStr
    titleStr = '随访信息'
    if (injuryVisitFormPanel != null) {
        injuryVisitFormPanel.destroy(true);
        injuryVisitFormPanel = null;
    }
    if (!injuryVisitFormPanel) {
        injuryVisitFormPanel = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (injuryVisitWin != null) {
        injuryVisitWin.destroy(true);
        injuryVisitWin = null;
    }
    if (!injuryVisitWin) {
        injuryVisitWin = new Ext.Window({
            id : 'injuryVisitWin',
            title : titleStr,
            border : false,
            width :1010,
            height : 340,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : injuryVisitFormPanel,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '保存',
                tooltip : '保存随访信息'
            },{
                handler : function() {
                    injuryVisitWin.hide();
                },
                text : '关闭'
            }]
        });
    }
    injuryVisitWin.show();
}

var injuryVisitViewFormPanel;
var injuryVisitViewWin;
function onInjuryVisitView(record,id,uri,funStr,funStr1) {
    var titleStr
    titleStr = '随访信息查看'
    if (injuryVisitViewFormPanel != null) {
        injuryVisitViewFormPanel.destroy(true);
        injuryVisitViewFormPanel = null;
    }
    if (!injuryVisitViewFormPanel) {
        injuryVisitViewFormPanel = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="injuryVisitViewFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (injuryVisitViewWin != null) {
        injuryVisitViewWin.destroy(true);
        injuryVisitViewWin = null;
    }
    if (!injuryVisitViewWin) {
        injuryVisitViewWin = new Ext.Window({
            id : 'injuryVisitViewWin',
            title : titleStr,
            border : false,
            width :1010,
            height : 340,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : injuryVisitViewFormPanel,
            buttons : [/*{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '保存',
                tooltip : '保存随访信息'
            },*/ {
                handler : function() {
                    injuryVisitViewWin.hide();
                },
                text : '关闭'
            }]
        });
    }
    injuryVisitViewWin.show();
}

//
var formPanelStrokeAdd;
var strokeAddWin;
function onAddStroke(uri,funStr,funStr1) {
    titleStr = '添加记录'
    if (formPanelStrokeAdd != null) {
        formPanelStrokeAdd.destroy(true);
        formPanelStrokeAdd = null;
    }
    if (!formPanelStrokeAdd) {
        formPanelStrokeAdd = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            // html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
            // width="100%" height="100%" frameborder="0"/>'
            html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (strokeAddWin != null) {
        strokeAddWin.destroy(true);
        strokeAddWin = null;
    }
    if (!strokeAddWin) {
        strokeAddWin = new Ext.Window({
            id : 'strokeAddWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : formPanelStrokeAdd,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
//                  save_fun('1');
                },
                text : '保存',
                tooltip : '保存信息不提交审核'
            }, {
                handler : function() {
                    eval("parent."+funStr1);
//                  save_fun('2');
                },
                text : '提交',
                tooltip : '保存信息并提交审核'
            }, {
                handler : function() {
                    strokeAddWin.hide();
                },
                text : '取消'
            }]
        });
    }
    strokeAddWin.show();
}

var formPanelStrokeMod;
var strokeModWin;
function onModStroke(record,id,uri,funStr,funStr1) {
    var titleStr
    titleStr = '修改记录'
    if (formPanelStrokeMod != null) {
        formPanelStrokeMod.destroy(true);
        formPanelStrokeMod = null;
    }
    if (!formPanelStrokeMod) {
        formPanelStrokeMod = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (strokeModWin != null) {
        strokeModWin.destroy(true);
        strokeModWin = null;
    }
    if (!strokeModWin) {
        strokeModWin = new Ext.Window({
            id : 'strokeModWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : formPanelStrokeMod,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '保存',
                tooltip : '保存信息不提交审核'
            }, {
                handler : function() {
                    eval("parent."+funStr1);
                },
                text : '提交',
                tooltip : '保存信息并提交审核'
            }, {
                handler : function() {
                    strokeModWin.hide();
                },
                text : '取消'
            }]
        });
    }
    strokeModWin.show();
}
var formPanelStrokeVisitMod;
var strokeVisitModWin;
function onModStrokeVisit(record,id,uri,funStr,funStr1) {
    var titleStr
    titleStr = '修改记录'
    if (formPanelStrokeVisitMod != null) {
        formPanelStrokeVisitMod.destroy(true);
        formPanelStrokeVisitMod = null;
    }
    if (!formPanelStrokeVisitMod) {
        formPanelStrokeVisitMod = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (strokeVisitModWin != null) {
        strokeVisitModWin.destroy(true);
        strokeVisitModWin = null;
    }
    if (!strokeVisitModWin) {
        strokeVisitModWin = new Ext.Window({
            id : 'strokeVisitModWin',
            title : titleStr,
            border : false,
            width :1010,
            height : 340,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : formPanelStrokeVisitMod,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '保存',
                tooltip : '保存信息不提交审核'
            }, /*{
                handler : function() {
                    eval("parent."+funStr1);
                },
                text : '提交',
                tooltip : '保存信息并提交审核'
            },*/ {
                handler : function() {
                    strokeVisitModWin.hide();
                },
                text : '取消'
            }]
        });
    }
    strokeVisitModWin.show();
}
var submitStrokformPanel;
var submitStrokwin;
function onsubmitStrok(record,id,uri,funStr) {
	var  titleStr
	titleStr = '提交记录'

	if (submitStrokformPanel != null) {
		submitStrokformPanel.destroy(true);
		submitStrokformPanel = null;
	}
	if (!submitStrokformPanel) {
		submitStrokformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (submitStrokwin != null) {
		submitStrokwin.destroy(true);
		submitStrokwin = null;
	}
	if (!submitStrokwin) {
		submitStrokwin = new Ext.Window({
			id : 'submitStrokwin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : submitStrokformPanel,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '提交',
				tooltip : '保存信息并提交审核'
			}, {
				handler : function() {
					submitStrokwin.hide();
				},
				text : '取消'
			}]
		});
	}
	submitStrokwin.show();
}


var formPanelStrokeSee;
var strokeSeeWin;
function onSeeStroke(record,id,uri,funStr) {
    titleStr = '添加记录'
    if (formPanelStrokeSee != null) {
        formPanelStrokeSee.destroy(true);
        formPanelStrokeSee = null;
    }
    if (!formPanelStrokeSee) {
        formPanelStrokeSee = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            // html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
            // width="100%" height="100%" frameborder="0"/>'
            html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (strokeSeeWin != null) {
        strokeSeeWin.destroy(true);
        strokeSeeWin = null;
    }
    if (!strokeSeeWin) {
        strokeSeeWin = new Ext.Window({
            id : 'strokeSeeWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : formPanelStrokeSee,
            buttons : [ {
                handler : function() {
                    strokeSeeWin.hide();
                },
                text : '取消'
            }]
        });
    }
    strokeSeeWin.show();
}

var seeStrokeformPanel;
var strokeSeeDwin;
function onStrokeDetail(record,id,uri,funStr,funStr1,funStr2) {
	var  titleStr
	titleStr = '查看信息'

	if (seeStrokeformPanel != null) {
		seeStrokeformPanel.destroy(true);
		seeStrokeformPanel = null;
	}
	if (!seeStrokeformPanel) {
		seeStrokeformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (strokeSeeDwin != null) {
		strokeSeeDwin.destroy(true);
		strokeSeeDwin = null;
	}
	if (!strokeSeeDwin) {
		strokeSeeDwin = new Ext.Window({
			id : 'strokeSeeDwin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : seeStrokeformPanel,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '审核通过'
			}, {
				handler : function() {
					eval("parent."+funStr1);
				},
				text : '退回修订'
			},{
				handler : function() {
					eval("parent."+funStr2);
				},
				text : '保存'
			}, {
				handler : function() {
					strokeSeeDwin.hide();
				},
				text : '关闭'
			}]
		});
	}
	strokeSeeDwin.show();
}

var mutilPanelStroke;
var mutilWindowStroke;
function mutilInfoStroke(uri) {
	var documentWidth = 0;
if($("body").innerWidth()>document.documentElement.clientWidth)
	documentWidth = $("body").innerWidth();
else
	documentWidth = document.documentElement.clientWidth;
var documentHeight = 0;
if($("body").innerHeight()>document.documentElement.clientHeight)
	documentHeight = $("body").innerHeight();
else
	documentHeight = document.documentElement.clientHeight;
	titleStr = '数据比对'
	if (mutilPanelStroke != null) {
		mutilPanelStroke.destroy(true);
		mutilPanelStroke = null;
	}
	if (!mutilPanelStroke) {
		mutilPanelStroke = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			// html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
			// width="100%" height="100%" frameborder="0"/>'
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (mutilWindowStroke != null) {
		mutilWindowStroke.destroy(true);
		mutilWindowStroke = null;
	}
	if (!mutilWindowStroke) {
		mutilWindowStroke = new Ext.Window({
			id : 'mutilWindowStroke',
			title : titleStr,
			border : false,
			width : documentWidth-5,
			height : documentHeight-5,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : mutilPanelStroke,
			buttons : [{
				handler : function() {
					mutilWindowStroke.hide();
				},
				text : '关闭'
			}]
		});
	}
	mutilWindowStroke.show();
}



var formPanelCoronaryAdd;
var coronaryAddWin;
function onCoronaryAdd(uri,funStr,funStr1) {
	titleStr = '添加记录'
	if (formPanelCoronaryAdd != null) {
		formPanelCoronaryAdd.destroy(true);
		formPanelCoronaryAdd = null;
	}
	if (!formPanelCoronaryAdd) {
		formPanelCoronaryAdd = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (coronaryAddWin != null) {
		coronaryAddWin.destroy(true);
		coronaryAddWin = null;
	}
	if (!coronaryAddWin) {
		coronaryAddWin = new Ext.Window({
			id : 'coronaryAddWin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : formPanelCoronaryAdd,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '保存',
				tooltip : '保存信息不提交审核'
			}, {
				handler : function() {
					eval("parent."+funStr1);
				},
				text : '提交',
				tooltip : '保存信息并提交审核'
			}, {
				handler : function() {
					coronaryAddWin.hide();
				},
				text : '取消'
			}]
		});
	}
	coronaryAddWin.show();
}


var formPanelCoronaryVisitAdd;
var coronaryVisitAddWin;
function onCoronaryVisitAdd(uri,funStr,funStr1,vRid) {
	if(vRid>0){
		titleStr = '修改记录'
	}else{
		titleStr = '添加记录'
	}
	if (formPanelCoronaryVisitAdd != null) {
		formPanelCoronaryVisitAdd.destroy(true);
		formPanelCoronaryVisitAdd = null;
	}
	if (!formPanelCoronaryVisitAdd) {
		formPanelCoronaryVisitAdd = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (coronaryVisitAddWin != null) {
		coronaryVisitAddWin.destroy(true);
		coronaryVisitAddWin = null;
	}
	if (!coronaryVisitAddWin) {
		coronaryVisitAddWin = new Ext.Window({
			id : 'coronaryVisitAddWin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 350,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : formPanelCoronaryVisitAdd,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '保存'
			},{
				handler : function() {
					coronaryVisitAddWin.hide();
				},
				text : '返回'
			}]
		});
	}
	coronaryVisitAddWin.show();
}

var formPanelCoronaryMod;
var coronaryModWin;
function onCoronaryMod(record,id,uri,funStr,funStr1) {
    var titleStr
    titleStr = '修改记录'
    if (formPanelCoronaryMod != null) {
        formPanelCoronaryMod.destroy(true);
        formPanelCoronaryMod = null;
    }
    if (!formPanelCoronaryMod) {
        formPanelCoronaryMod = new Ext.FormPanel({
            labelAlign : 'right',
            labelWidth : 125,
            bodyStyle : 'padding:5px 5px 0',
            html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
        });
    }
    if (coronaryModWin != null) {
        coronaryModWin.destroy(true);
        coronaryModWin = null;
    }
    if (!coronaryModWin) {
        coronaryModWin = new Ext.Window({
            id : 'coronaryModWin',
            title : titleStr,
            border : false,
            width : 1010,
            height : 500,
            minWidth : 200,
            maximizable : false,
            closeAction : 'hide',
            layout : 'fit',
            plain : false,
            closable : true,
            modal : false,
            bodyStyle : 'padding:0 5px 0 0;',
            buttonAlign : 'center',
            items : formPanelCoronaryMod,
            buttons : [{
                handler : function() {
                    eval("parent."+funStr);
                },
                text : '保存',
                tooltip : '保存信息不提交审核'
            }, {
                handler : function() {
                    eval("parent."+funStr1);
                },
                text : '提交',
                tooltip : '保存信息并提交审核'
            }, {
                handler : function() {
                    coronaryModWin.hide();
                },
                text : '取消'
            }]
        });
    }
    coronaryModWin.show();
}


var seeCoronaryformPanel;
var seeCoronarywin;
function onCoronarySee(record,id,uri,funStr,funStr1) {
	var titleStr
	titleStr = '查看记录'
	if (seeCoronaryformPanel != null) {
		seeCoronaryformPanel.destroy(true);
		seeCoronaryformPanel = null;
	}
	if (!seeCoronaryformPanel) {
		seeCoronaryformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (seeCoronarywin != null) {
		seeCoronarywin.destroy(true);
		seeCoronarywin = null;
	}
	if (!seeCoronarywin) {
		seeCoronarywin = new Ext.Window({
			id : 'seeCoronarywin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : seeCoronaryformPanel,
			buttons : [{
				handler : function() {
					seeCoronarywin.hide();
				},
				text : '取消'
			}]
		});
	}
	seeCoronarywin.show();
}

var submitCoronaryformPanel;
var submitCoronarywin;
function onCoronarySubmit(record,id,uri,funStr) {
	var  titleStr
	titleStr = '提交记录'

	if (submitCoronaryformPanel != null) {
		submitCoronaryformPanel.destroy(true);
		submitCoronaryformPanel = null;
	}
	if (!submitCoronaryformPanel) {
		submitCoronaryformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (submitCoronarywin != null) {
		submitCoronarywin.destroy(true);
		submitCoronarywin = null;
	}
	if (!submitCoronarywin) {
		submitCoronarywin = new Ext.Window({
			id : 'submitCoronarywin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : submitCoronaryformPanel,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '提交',
				tooltip : '保存信息并提交审核'
			}, {
				handler : function() {
					submitCoronarywin.hide();
				},
				text : '取消'
			}]
		});
	}
	submitCoronarywin.show();
}

var cornaryDetailformPanel;
var cornaryDetailwin;
function onCornaryDetail(record,id,uri,funStr,funStr1,funStr2) {
	var  titleStr
	titleStr = '查看信息'

	if (cornaryDetailformPanel != null) {
		cornaryDetailformPanel.destroy(true);
		cornaryDetailformPanel = null;
	}
	if (!cornaryDetailformPanel) {
		cornaryDetailformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (cornaryDetailwin != null) {
		cornaryDetailwin.destroy(true);
		cornaryDetailwin = null;
	}
	if (!cornaryDetailwin) {
		cornaryDetailwin = new Ext.Window({
			id : 'cornaryDetailwin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : cornaryDetailformPanel,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '审核通过'
			}, {
				handler : function() {
					eval("parent."+funStr1);
				},
				text : '退回修订'
			}, {
				handler : function() {
					eval("parent."+funStr2);
				},
				text : '保存'
			},{
				handler : function() {
					cornaryDetailwin.hide();
				},
				text : '关闭'
			}]
		});
	}
	cornaryDetailwin.show();
}

var cornorayPanel;
var cornorayWindow;
function cornorayInfo(uri) {
	var documentWidth = 0;
if($("body").innerWidth()>document.documentElement.clientWidth)
	documentWidth = $("body").innerWidth();
else
	documentWidth = document.documentElement.clientWidth;
var documentHeight = 0;
if($("body").innerHeight()>document.documentElement.clientHeight)
	documentHeight = $("body").innerHeight();
else
	documentHeight = document.documentElement.clientHeight;
	titleStr = '数据比对'
	if (cornorayPanel != null) {
		cornorayPanel.destroy(true);
		cornorayPanel = null;
	}
	if (!cornorayPanel) {
		cornorayPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (cornorayWindow != null) {
		cornorayWindow.destroy(true);
		cornorayWindow = null;
	}
	if (!cornorayWindow) {
		cornorayWindow = new Ext.Window({
			id : 'cornorayWindow',
			title : titleStr,
			border : false,
			width : documentWidth-5,
			height : documentHeight-5,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : cornorayPanel,
			buttons : [{
				handler : function() {
					cornorayWindow.hide();
				},
				text : '关闭'
			}]
		});
	}
	cornorayWindow.show();
}

var therioma_card_info_panel;
var therioma_card_info_win;
function onAdd(uri,funStr,funStr1,type) {
	titleStr = '添加记录'
	if(type == "2")
		titleStr = "修改记录";
	if (therioma_card_info_panel != null) {
		therioma_card_info_panel.destroy(true);
		therioma_card_info_panel = null;
	}
	if (!therioma_card_info_panel) {
		therioma_card_info_panel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			// html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
			// width="100%" height="100%" frameborder="0"/>'
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (therioma_card_info_win != null) {
		therioma_card_info_win.destroy(true);
		therioma_card_info_win = null;
	}
	if (!therioma_card_info_win) {
		therioma_card_info_win = new Ext.Window({
			id : 'therioma_card_info_win',
			title : titleStr,
			border : false,
			width : 1005,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : therioma_card_info_panel,
			buttons : [{
				handler : function() {
					eval(funStr);
//					save_fun('1');
				},
				text : '保存',
				tooltip : '保存信息不提交审核'
			}, {
				handler : function() {
					eval(funStr1);
//					save_fun('2');
				},
				text : '提交',
				tooltip : '保存信息并提交审核'
			}, {
				handler : function() {
					therioma_card_info_win.hide();
				},
				text : '取消'
			}]
		});
	}
	therioma_card_info_win.show();
}


var therioma_card_info_panel1;
var therioma_card_info_win1;
function onAdd1(uri,funStr,type) {
	titleStr = '添加记录'
	if(type == "2")
		titleStr = "修改记录";
	if (therioma_card_info_panel1 != null) {
		therioma_card_info_panel1.destroy(true);
		therioma_card_info_panel1 = null;
	}
	if (!therioma_card_info_panel1) {
		therioma_card_info_panel1 = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			// html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
			// width="100%" height="100%" frameborder="0"/>'
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (therioma_card_info_win1 != null) {
		therioma_card_info_win1.destroy(true);
		therioma_card_info_win1 = null;
	}
	if (!therioma_card_info_win1) {
		therioma_card_info_win1 = new Ext.Window({
			id : 'therioma_card_info_win1',
			title : titleStr,
			border : false,
			width : 1005,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : therioma_card_info_panel1,
			buttons : [{
				handler : function() {
					eval(funStr);
//					save_fun('1');
				},
				text : '保存',
				tooltip : '保存信息不提交审核'
			}, {
				handler : function() {
					therioma_card_info_win1.hide();
				},
				text : '取消'
			}]
		});
	}
	therioma_card_info_win1.show();
}

var submitformPanel_therioma_card;
var submitwin_therioma_card;
function onsubmit_therioma_card(record,id,uri,funStr) {
	var  titleStr
	titleStr = '提交记录'

	if (submitformPanel_therioma_card != null) {
		submitformPanel_therioma_card.destroy(true);
		submitformPanel_therioma_card = null;
	}
	if (!submitformPanel_therioma_card) {
		submitformPanel_therioma_card = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (submitwin_therioma_card != null) {
		submitwin_therioma_card.destroy(true);
		submitwin_therioma_card = null;
	}
	if (!submitwin_therioma_card) {
		submitwin_therioma_card = new Ext.Window({
			id : 'submitwin_therioma_card',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : submitformPanel_therioma_card,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '提交',
				tooltip : '保存信息并提交审核'
			}, {
				handler : function() {
					submitwin_therioma_card.hide();
				},
				text : '取消'
			}]
		});
	}
	submitwin_therioma_card.show();
}

var therioma_card_info_panel_audit;
var therioma_card_info_win_audit;
function onAudit_therioma_card(uri,funStr,funStr1,funStr2) {
	if (therioma_card_info_panel_audit != null) {
		therioma_card_info_panel_audit.destroy(true);
		therioma_card_info_panel_audit = null;
	}
	if (!therioma_card_info_panel_audit) {
		therioma_card_info_panel_audit = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			// html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
			// width="100%" height="100%" frameborder="0"/>'
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (therioma_card_info_win_audit != null) {
		therioma_card_info_win_audit.destroy(true);
		therioma_card_info_win_audit = null;
	}
	if (!therioma_card_info_win_audit) {
		therioma_card_info_win_audit = new Ext.Window({
			id : 'therioma_card_info_win_audit',
			title : '审核记录',
			border : false,
			width : 1005,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : therioma_card_info_panel_audit,
			buttons : [{
				handler : function() {
					eval(funStr);
				},
				text : '审核通过'
			}, {
				handler : function() {
					eval(funStr1);
				},
				text : '退回修订'
			}, {
				handler : function() {
					eval(funStr2);
				},
				text : '保存',
				tooltip : '修改并保存该条报卡信息'
			}, {
				handler : function() {
					therioma_card_info_win_audit.hide();
				},
				text : '取消'
			}]
		});
	}
	therioma_card_info_win_audit.show();
}

var seeTumorformPanel;
var seeTumorwin;
function onSee(record,id,uri,funStr,funStr1) {
	var titleStr
	titleStr = '查看记录'
	if (seeTumorformPanel != null) {
		seeTumorformPanel.destroy(true);
		seeTumorformPanel = null;
	}
	if (!seeTumorformPanel) {
		seeTumorformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (seeTumorwin != null) {
		seeTumorwin.destroy(true);
		seeTumorwin = null;
	}
	if (!seeTumorwin) {
		seeTumorwin = new Ext.Window({
			id : 'seeTumorformPanel',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : seeTumorformPanel,
			buttons : [{
				handler : function() {
					seeTumorwin.hide();
				},
				text : '取消'
			}]
		});
	}
	seeTumorwin.show();
}

function closemutilInfo(){
	mutilWindow.hide();
	alert("合并成功");
	var contentWindow = document.getElementById("iframe-workPanel").contentWindow;
	contentWindow.Ext.getCmp("grid").store.reload();
}
var mutilPanel;
var mutilWindow;
function mutilInfo(uri) {
	var documentWidth = 0;
if($("body").innerWidth()>document.documentElement.clientWidth)
	documentWidth = $("body").innerWidth();
else
	documentWidth = document.documentElement.clientWidth;
var documentHeight = 0;
if($("body").innerHeight()>document.documentElement.clientHeight)
	documentHeight = $("body").innerHeight();
else
	documentHeight = document.documentElement.clientHeight;
	titleStr = '数据比对'
	if (mutilPanel != null) {
		mutilPanel.destroy(true);
		mutilPanel = null;
	}
	if (!mutilPanel) {
		mutilPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			// html:'<iframe id="addOrModifyFrame" src="../tumor/tumor_info.jsp"
			// width="100%" height="100%" frameborder="0"/>'
			html : '<iframe id="addOrModifyFrame" src="'+uri+'" width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (mutilWindow != null) {
		mutilWindow.destroy(true);
		mutilWindow = null;
	}
	if (!mutilWindow) {
		mutilWindow = new Ext.Window({
			id : 'mutilWindow',
			title : titleStr,
			border : false,
			width : documentWidth-5,
			height : documentHeight-5,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : mutilPanel,
			buttons : [{
				handler : function() {
					mutilWindow.hide();
				},
				text : '关闭'
			}]
		});
	}
	mutilWindow.show();
}


var followupformPanel_therioma_card;
var followupwin_therioma_card;
function onFollowup(uri,funStr) {
	var  titleStr
	titleStr = '随访信息'

	if (followupformPanel_therioma_card != null) {
		followupformPanel_therioma_card.destroy(true);
		followupformPanel_therioma_card = null;
	}
	if (!followupformPanel_therioma_card) {
		followupformPanel_therioma_card = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (followupwin_therioma_card != null) {
		followupwin_therioma_card.destroy(true);
		followupwin_therioma_card = null;
	}
	if (!followupwin_therioma_card) {
		followupwin_therioma_card = new Ext.Window({
			id : 'followupwin_therioma_card',
			title : titleStr,
			border : false,
			width : 1010,
			height : 350,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : followupformPanel_therioma_card,
			buttons : [{
				handler : function() {
					eval("parent."+funStr);
				},
				text : '保存',
				tooltip : '保存信息并提交审核'
			}, {
				handler : function() {
					followupwin_therioma_card.hide();
				},
				text : '取消'
			}]
		});
	}
	followupwin_therioma_card.show();
}

var moveformPanel;
var movewin;
function onMove(id,uri) {
	var titleStr
	titleStr = '迁入信息查看'
	if (moveformPanel != null) {
		moveformPanel.destroy(true);
		moveformPanel = null;
	}
	if (!moveformPanel) {
		moveformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (movewin != null) {
		movewin.destroy(true);
		movewin = null;
	}
	if (!movewin) {
		movewin = new Ext.Window({
			id : 'movewin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : moveformPanel,
			buttons : [{
				handler : function() {
					Ext.Ajax.request({
						url : '../taTheriomaCards/moveIn.action?id='+id,
						failure : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							Ext.Msg.show({
								title : '错误',
								msg : '<span style="text-align:center;width:250px;margin:5 0 5 0;"></span>',
								buttons : Ext.MessageBox.OK,
								icon : Ext.MessageBox.WARNING
							});
						},
						success : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							if(responseArray.result == "true"){
								Ext.Msg.alert('提示', '纳入管理成功！');
								try{
									document.getElementById("_iframe").contentWindow.location.reload();
								}catch(e){}
								movewin.hide();
							}
						}
					});
				},
				text : '纳入管理'
			}, {
				handler : function() {
					Ext.Ajax.request({
						url : '../taTheriomaCards/moveBack.action?id='+id,
						failure : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							Ext.Msg.show({
								title : '错误',
								msg : '<span style="text-align:center;width:250px;margin:5 0 5 0;"></span>',
								buttons : Ext.MessageBox.OK,
								icon : Ext.MessageBox.WARNING
							});
						},
						success : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							if(responseArray.result == "true"){
								Ext.Msg.alert('提示', '撤回成功！');
								try{
									document.getElementById("_iframe").contentWindow.location.reload();
								}catch(e){}
								movewin.hide();
							}
						}
					});
				},
				text : '撤回'
			}, {
				handler : function() {
					movewin.hide();
				},
				text : '取消'
			}]
		});
	}
	movewin.show();
}

var movingformPanel;
var movingwin;
function onMoving(id,uri) {
	var titleStr
	titleStr = '迁出人员信息查看'
	if (movingformPanel != null) {
		movingformPanel.destroy(true);
		movingformPanel = null;
	}
	if (!movingformPanel) {
		movingformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (movingwin != null) {
		movingwin.destroy(true);
		movingwin = null;
	}
	if (!movingwin) {
		movingwin = new Ext.Window({
			id : 'moveBackwin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : movingformPanel,
			buttons : [{
				handler : function() {
					parent.save_fun('1');
				},
				text : '信息修订'
			}, {
				handler : function() {
					Ext.MessageBox.wait('正在处理，请稍等...');
					Ext.Ajax.request({
						url : '../taTheriomaCards/delete.action?deleteID='+id,
						failure : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							Ext.Msg.show({
								title : '错误',
								msg : '<span style="text-align:center;width:250px;margin:5 0 5 0;">删除失败!</span>',
								buttons : Ext.MessageBox.OK,
								icon : Ext.MessageBox.WARNING
							});
						},
						success : function(result, request) {
							Ext.MessageBox.hide();
							Ext.Msg.show({
								title : '成功',
								msg : '<span style="text-align:center;width:250px;margin:5 0 5 0;">'
										+ '删除成功！' + '</span>',
								buttons : Ext.MessageBox.OK,
								icon : Ext.MessageBox.INFO
							});
							try{
								document.getElementById("_iframe").contentWindow.location.reload();
							}catch(e){}
							movingwin.hide();
						}
					});
				},
				text : '删除'
			}, {
				handler : function() {
					movingwin.hide();
				},
				text : '取消'
			}]
		});
	}
	movingwin.show();
}

var moveBackformPanel;
var moveBackwin;
function onMoveBack(id,uri) {
	var titleStr
	titleStr = '迁出人员撤回信息查看'
	if (moveBackformPanel != null) {
		moveBackformPanel.destroy(true);
		moveBackformPanel = null;
	}
	if (!moveBackformPanel) {
		moveBackformPanel = new Ext.FormPanel({
			labelAlign : 'right',
			labelWidth : 125,
			bodyStyle : 'padding:5px 5px 0',
			html : '<iframe id="modifyFrame" src='+uri+'  width="100%" height="100%" frameborder="0"/>'
		});
	}
	if (moveBackwin != null) {
		moveBackwin.destroy(true);
		moveBackwin = null;
	}
	if (!moveBackwin) {
		moveBackwin = new Ext.Window({
			id : 'moveBackwin',
			title : titleStr,
			border : false,
			width : 1010,
			height : 500,
			minWidth : 200,
			maximizable : false,
			closeAction : 'hide',
			layout : 'fit',
			plain : false,
			closable : true,
			modal : false,
			bodyStyle : 'padding:0 5px 0 0;',
			buttonAlign : 'center',
			items : moveBackformPanel,
			buttons : [{
				handler : function() {
					parent.save_fun('1');
				},
				text : '信息修订'
			}, {
				handler : function() {
					Ext.Ajax.request({
						url : '../taTheriomaCards/moveOut.action?id='+id,
						failure : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							Ext.Msg.show({
								title : '错误',
								msg : '<span style="text-align:center;width:250px;margin:5 0 5 0;"></span>',
								buttons : Ext.MessageBox.OK,
								icon : Ext.MessageBox.WARNING
							});
						},
						success : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							if(responseArray.result == "true"){
								Ext.Msg.alert('提示', '迁出成功！');
								try{
									document.getElementById("_iframe").contentWindow.location.reload();
								}catch(e){}
								moveBackwin.hide();
							}
						}
					});
				},
				text : '信息迁出'
			}, {
				handler : function() {
					Ext.MessageBox.wait('正在处理，请稍等...');
					Ext.Ajax.request({
						url : '../taTheriomaCards/delete.action?deleteID='+id,
						failure : function(result, request) {
							var responseArray = Ext.util.JSON.decode(result.responseText);
							Ext.Msg.show({
								title : '错误',
								msg : '<span style="text-align:center;width:250px;margin:5 0 5 0;">删除失败!</span>',
								buttons : Ext.MessageBox.OK,
								icon : Ext.MessageBox.WARNING
							});
						},
						success : function(result, request) {
							Ext.MessageBox.hide();
							Ext.Msg.show({
								title : '成功',
								msg : '<span style="text-align:center;width:250px;margin:5 0 5 0;">'
										+ '删除成功！' + '</span>',
								buttons : Ext.MessageBox.OK,
								icon : Ext.MessageBox.INFO
							});
							try{
								document.getElementById("_iframe").contentWindow.location.reload();
							}catch(e){}
							moveBackwin.hide();
						}
					});
				},
				text : '删除'
			}, {
				handler : function() {
					moveBackwin.hide();
				},
				text : '取消'
			}]
		});
	}
	moveBackwin.show();
}